package com.mc.developmentkit.config;

import android.text.TextUtils;
import android.util.Log;

/**
 * Created by LeBron on 2016/12/23.
 */

public class MCConstant {

    /**
     * 微信appid
     */
    protected static String wxAppId;
    /**
     * BugOut appid
     */
    protected static String bugOutAppId;
    /**
     * 普通注册url
     */
    protected static String UserRegisterUrl ="";
    /**
     * 手机号注册url
     */
    protected static String UserPhoneRegisterUrl  ="";
    /**
     *获取短信url
     */
    protected static String UserGetPhoneCodeUrl  ="";
    /**
     *关于我们url
     */
    protected static String AboutUsUrl  ="";
    /**
     *用户普通登录
     */
    protected static String UserLoginUrl  ="";
    /**
     *第三方登录获取信息提交到服务器url
     */
    protected static String UserThirdLoginUrl  ="";
    /**
     *忘记密码
     */
    protected static String UserForgetPassword ="";
    /**
     *支付宝支付
     */
    protected static String UserAliPayUrl ="";
    /**
     *微付通支付
     */
    protected static String UserWFTPayUrl ="";
    /**
     *修改密码
     */
    protected static String UserUpdatePasswordUrl ="";
    /**
     *意见反馈
     */
    protected static String UserFeedBackUrl ="";
    /**
     *轮播图
     */
    protected static String APPTopTusUrl ="";

    public static String getWxAppId() {
        if (!TextUtils.isEmpty(wxAppId)) {
            return wxAppId;
        } else {
            Log.e("微信appid", "微信appid为空");
            return "";
        }
    }

    public static String getBugOutAppId() {
        if (!TextUtils.isEmpty(bugOutAppId)) {
            return bugOutAppId;
        } else {
            Log.e("bugOutAppId", "bugOutAppId为空");
            return "";
        }
    }

    public static String getUserPhoneRegisterUrl() {
        if (!TextUtils.isEmpty(UserPhoneRegisterUrl)) {
            return UserPhoneRegisterUrl;
        } else {
            Log.e("手机号注册", "Url为空");
            return "";
        }
    }

    public static String getUserRegisterUrl() {
        if (!TextUtils.isEmpty(UserRegisterUrl)) {
            return UserRegisterUrl;
        } else {
            Log.e("普通账号注册", "Url为空");
            return "";
        }
    }

    public static String getUserGetPhoneCodeUrl() {
        if (!TextUtils.isEmpty(UserGetPhoneCodeUrl)) {
            return UserGetPhoneCodeUrl;
        } else {
            Log.e("获取手机验证码", "Url为空");
            return "";
        }
    }

    public static String getAboutUsUrl() {
        if (!TextUtils.isEmpty(AboutUsUrl)) {
            return AboutUsUrl;
        } else {
            Log.e("关于我们", "Url为空");
            return "";
        }
    }

    public static String getUserLoginUrl() {
        if (!TextUtils.isEmpty(UserLoginUrl)) {
            return UserLoginUrl;
        } else {
            Log.e("用户普通登录", "Url为空");
            return "";
        }
    }

    public static String getUserThirdLoginUrl() {
        if (!TextUtils.isEmpty(UserThirdLoginUrl)) {
            return UserThirdLoginUrl;
        } else {
            Log.e("第三方登录获取到的信息提交到服务器", "Url为空");
            return "";
        }
    }

    public static String getUserForgetPassword() {
        if (!TextUtils.isEmpty(UserForgetPassword)) {
            return UserForgetPassword;
        } else {
            Log.e("忘记密码", "Url为空");
            return "";
        }
    }

    public static String getUserAliPayUrl() {
        if (!TextUtils.isEmpty(UserAliPayUrl)) {
            return UserAliPayUrl;
        } else {
            Log.e("支付宝支付", "Url为空");
            return "";
        }
    }

    public static String getUserWFTPayUrl() {
        if (!TextUtils.isEmpty(UserWFTPayUrl)) {
            return UserWFTPayUrl;
        } else {
            Log.e("微付通支付", "Url为空");
            return "";
        }
    }

    public static String getUserUpdatePasswordUrl() {
        if (!TextUtils.isEmpty(UserUpdatePasswordUrl)) {
            return UserUpdatePasswordUrl;
        } else {
            Log.e("修改密码", "Url为空");
            return "";
        }
    }

    public static String getUserUserFeedBackUrlUrl() {
        if (!TextUtils.isEmpty(UserFeedBackUrl)) {
            return UserFeedBackUrl;
        } else {
            Log.e("意见反馈", "Url为空");
            return "";
        }
    }

    public static String getAPPTopTusUrl() {
        if (!TextUtils.isEmpty(APPTopTusUrl)) {
            return APPTopTusUrl;
        } else {
            Log.e("轮播图", "Url为空");
            return "";
        }
    }
}
